# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

platform :ios do
	desc "Description of what the lane does"
	lane :custom_lane do
	    # add actions here: https://docs.fastlane.tools/actions
	end

	lane :beta do
	  	build_app(scheme: "HYChatProject")

	end

	lane :release do
	  	build_app(
	  	#scheme: "HYChatProject"
	  	#指定打包所使用的输出方式，目前支持app-store, package, ad-hoc, enterprise, development, 和developer-id，即xcodebuild的method参数
		export_method: "app-store"
	  )
	end

	desc "使用build_app 打包，并上传到蒲公英"
	lane :debug2 do
	  	build_app(
	  	scheme: "HYChatProject",

	  	output_directory: "../Packge",
		
		export_method: "development"
	  )

	  pgyer(api_key: "e92e2719ea306036fadd85a2f8073766", user_key: "f652688d21106ef6560424d0de6035f1")
	end
  
  	lane :dabao do

	  	gym(

	  		scheme: "HYChatProject",

		  	output_directory: "../Packge",
			
			export_method: "development",

			output_name: "test.ipa"

		)
		

		pgyer(api_key: "e92e2719ea306036fadd85a2f8073766", user_key: "f652688d21106ef6560424d0de6035f1")

	end

	desc "使用gym 打包，并上传到fir.im"
	lane :gym_pickage do
	  	gym(

	  		scheme: "HYChatProject",

		  	output_directory: "../output",
			
			export_method: "development",

			output_name: "test1.ipa"
			
		)
		#上传ipa到fir.im服务器
		firim(firim_api_token: "25eca0d1289c3fb6e00561f00d5ee0f4")
 
	end
end
